package com.mmall.param;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @Author wangtengyu
 * @Create 2018-03-07-9:42
 */
@Getter
@Setter
public class DeptParm {

    private Integer id;

    @NotBlank(message = "部门名称不能为空")
    @Length(max = 15,min = 2,message = "部门长度在0-15之间")
    private String name;

    private Integer parentId=0;

    @NotNull(message = "展示顺序不能为空")
    private Integer seq;

    @Length(max = 150,message = "备注的长度应在150个字以内")
    private String remark;
}
